import request from '@/utils/request';
import store from "@/store";

const env = import.meta.env.MODE || 'development';
const prefix = '';

// 口令登录 /apiapp/v1/myadmin/code_login
export function codeLoginApi (params) {
  return request({
    url: `${prefix}/apiapp/v1/myadmin/code_login`,
    method: 'get',
    hideError: true,
    params
  });
}

// 我的 /apiapp/v1/myadmin/myinfo
export function myInfoApi (params) {
  return request({
    url: `${prefix}/apiapp/v1/myadmin/myinfo`,
    method: 'get',
    params
  });
}

// 安全退出 /apiapp/v1/myadmin/exit
export function layoutApi (params) {
  return request({
    url: `${prefix}/apiapp/v1/myadmin/exit`,
    method: 'get',
    params
  });
}
